import { onUnmounted } from "vue"

function useDOMCreate(nodeId:string){       //传入结点id
    const node = document.createElement('div')
    node.id=nodeId
    document.body.appendChild(node)
    onUnmounted(()=>{   //Vue实例销毁后调用
        document.body.removeChild(node)
    })
}

export default useDOMCreate